package com.xing.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.concurrent.ConcurrentTaskScheduler;

/**
 * Created by Bradish7Y on 2017/8/29.
 */
@Configuration
@EnableScheduling
public class ScheduleConfig {

    @Bean
    public ConcurrentTaskScheduler concurrentTaskScheduler() {
        return new ConcurrentTaskScheduler();
    }
}
